package com.flightcloud.ssm.user.service.impl;

import java.util.Map;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.flightcloud.ssm.user.entity.User;
import com.flightcloud.ssm.user.mapper.UserMapper;
import com.flightcloud.ssm.user.service.IUserService;
import com.flightcloud.ssm.user.service.RoleService;

/**
 * <p>
 * 用户信息表 服务实现类
 * </p>
 *
 * @author chenjj
 * @since 2017-03-12
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {
	@Autowired
	private ApplicationContext ac;

	@PostConstruct
	public void init() {
		System.out.println(ac);
		Map<String, IUserService> map = ac.getBeansOfType(IUserService.class);
		Map<String, UserMapper> map2 = ac.getBeansOfType(UserMapper.class);
		Map<String, RoleService> map3 = ac.getBeansOfType(RoleService.class);
		System.out.println(map);
		System.out.println(map2);
		System.out.println(map3);
	}
}
